﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>New support case</title>
    <style type="text/css">
        body
        {
            font-family: Tahoma;
            font-size: 11px;
            margin: 20px;
        }
        h1
        {
            font-size: 13px;
            font-weight: bold;
        }
        .style1
        {
            width: 63%;
        }
        .style2
        {
            width: 131px;
        }
        .style3
        {
            width: 218px;
        }
    </style>
</head>
<body>
A new support case with case id <b>{ticketnumber}</b> has been created on the queue
    <b>{queuename}</b> in response to the e-mail <b>{title}</b> sent by <b>{sender}</b>.
    <br />
    <br />This template can be used to notify a team that a new case has been created on 
    the queue. The following keywords can be used. They should be enclosed in 
    brackets {} when used.<br />
    <br />
    <table cellspacing="0" class="style1" bgcolor="#FCFDBD" border="1" 
        cellpadding="0">
        <tr>
            <td class="style2">
                ticketnumber</td>
            <td class="style3">
                {ticketnumber}</td>
            <td>
                The ticket number of the case</td>
        </tr>
        <tr>
            <td class="style2">
                title</td>
            <td class="style3">
                {title}</td>
            <td>
                The title of the case/e-mail</td>
        </tr>
        <tr>
            <td class="style2">
                firstname</td>
            <td class="style3">
                {firstname}</td>
            <td>
                The first name of the sender (if available)</td>
        </tr>
        <tr>
            <td class="style2">
                lastname</td>
            <td class="style3">
                {lastname}</td>
            <td>
                The last name of the sender (if available)</td>
        </tr>
        <tr>
            <td class="style2">
                sender</td>
            <td class="style3">
                {sender}</td>
            <td>
                The e-mail address of the sender</td>
        </tr>
        <tr>
            <td class="style2">
                caseid</td>
            <td class="style3">
                {caseid}</td>
            <td>
                The GUID of the case. Useful to create direct links (&lt;a href.../&gt;). See 
                below.</td>
        </tr>
        <tr>
            <td class="style2">
                emailbodytext</td>
            <td class="style3">
                (see below)</td>
            <td>
                Text version of the mail body.</td>
        </tr>
        <tr>
            <td class="style2">
                date</td>
            <td class="style3">
                {date}</td>
            <td>
                Date case was created.</td>
        </tr>
        <tr>
            <td class="style2">
                time</td>
            <td class="style3">
                {time}</td>
            <td>
                Time case was created.</td>
        </tr>
        <tr>
            <td class="style2">
                emailbodyhtml</td>
            <td class="style3">
                (see below)</td>
            <td>
                Html version of the mail body. All formatting removed apart from line breaks.</td>
        </tr>
        <tr>
            <td class="style2">
                queuename</td>
            <td class="style3">
                {queuename}</td>
            <td>
                The name of the queue in which the case was created.
            </td>
        </tr>
    </table>
    <hr />
    <p>
        <b>Original e-mail (html-ish):</b></p>
    <p>
        {emailbodyhtml}</p>
    <p>
        <b>Original e-mail (text):</b></p>
    <p>
        {emailbodytext}</p>
<p>
        <b>Links</b></p>
<p>
        To provide a direct link to the case use:
        <a href="http://yourcrmserver/yourorg/cs/cases/edit.aspx?id={caseid}">
        http://yourcrmserver/yourorg/cs/cases/edit.aspx?id={caseid}</a><br />
        To provide a direct link to the e-mail use:
        <a href="http://yourcrmserver/yourorg/activities/email/edit.aspx?id={emailid}">
        http://yourcrmserver/yourorg/activities/email/edit.aspx?id={emailid}</a></p>
    <hr />
    <p>
        <b>More advanced usage</b></p>
<p>
    You can use any attribute of a case in the mail by using the syntax <b>
    {#attributename#}. </b>Some of the keywords above are only used for backward 
    compatibility.
</p>
<p>
    Some examples of attributes:</p>
    <table cellspacing="0" class="style1" bgcolor="#FCFDBD" border="1" 
    cellpadding="0">
        <tr>
            <td class="style2">
                caseorigincode</td>
            <td class="style3">
                {#caseorigincode#}</td>
            <td>
                The origin of the case.</td>
        </tr>
        <tr>
            <td class="style2">
                createdby</td>
            <td class="style3">
                {#createdby#}</td>
            <td>
                Who created the case.</td>
        </tr>
        <tr>
            <td class="style2">
                customerid</td>
            <td class="style3">
                {#customerid#}</td>
            <td>
                The name of the customer.</td>
        </tr>
        <tr>
            <td class="style2">
                prioritycode</td>
            <td class="style3">
                {#prioritycode#}</td>
            <td>
                The priority of the case.</td>
        </tr>
        </table>
    <p>
        Please navigate to
        <a href="http://yourcrmserver/yourorg/sdk/mdbrowser/entity.aspx?entity=incident">
        http://yourcrmserver/yourorg/sdk/mdbrowser/entity.aspx?entity=incident</a> for a 
        complete list of attributes.</p>
</body>
</html>
